package cn.xiangyuanpin.dao;

import cn.xiangyuanpin.pojo.Book;

import java.util.List;

public interface BookDao {
    public Integer addBook(Book book);
    public Integer deleteBookById(Integer id);
    public Integer updateBook(Book book);
    
    public Book queryBookById(Integer id);
   public List<Book> queryBooks();

    Integer queryForPageTotalCount();

    List<Book> queryForPageItems(int begin, int pageSize);
}
